Optimal. Leaf size=61 \[ \frac{(a+b x)^6 (A b-2 a B)}{6 b^3}-\frac{a (a+b x)^5 (A b-a B)}{5 b^3}+\frac{B (a+b x)^7}{7 b^3} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0405671, antiderivative size = 61, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.08, Rules used = {27, 76} \[ \frac{(a+b x)^6 (A b-2 a B)}{6 b^3}-\frac{a (a+b x)^5 (A b-a B)}{5 b^3}+\frac{B (a+b x)^7}{7 b^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 27
Rule 76
Rubi steps
\begin{align*} \int x (A+B x) \left (a^2+2 a b x+b^2 x^2\right )^2 \, dx &=\int x (a+b x)^4 (A+B x) \, dx\\ &=\int \left (\frac{a (-A b+a B) (a+b x)^4}{b^2}+\frac{(A b-2 a B) (a+b x)^5}{b^2}+\frac{B (a+b x)^6}{b^2}\right ) \, dx\\ &=-\frac{a (A b-a B) (a+b x)^5}{5 b^3}+\frac{(A b-2 a B) (a+b x)^6}{6 b^3}+\frac{B (a+b x)^7}{7 b^3}\\ \end{align*}
Mathematica [A] time = 0.0235681, size = 88, normalized size = 1.44 \[ \frac{1}{210} x^2 \left (63 a^2 b^2 x^2 (5 A+4 B x)+70 a^3 b x (4 A+3 B x)+35 a^4 (3 A+2 B x)+28 a b^3 x^3 (6 A+5 B x)+5 b^4 x^4 (7 A+6 B x)\right ) \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0., size = 100, normalized size = 1.6 \begin{align*}{\frac{{b}^{4}B{x}^{7}}{7}}+{\frac{ \left ( A{b}^{4}+4\,Ba{b}^{3} \right ){x}^{6}}{6}}+{\frac{ \left ( 4\,Aa{b}^{3}+6\,B{a}^{2}{b}^{2} \right ){x}^{5}}{5}}+{\frac{ \left ( 6\,A{a}^{2}{b}^{2}+4\,B{a}^{3}b \right ){x}^{4}}{4}}+{\frac{ \left ( 4\,A{a}^{3}b+B{a}^{4} \right ){x}^{3}}{3}}+{\frac{{a}^{4}A{x}^{2}}{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 0.971627, size = 134, normalized size = 2.2 \begin{align*} \frac{1}{7} \, B b^{4} x^{7} + \frac{1}{2} \, A a^{4} x^{2} + \frac{1}{6} \,{\left (4 \, B a b^{3} + A b^{4}\right )} x^{6} + \frac{2}{5} \,{\left (3 \, B a^{2} b^{2} + 2 \, A a b^{3}\right )} x^{5} + \frac{1}{2} \,{\left (2 \, B a^{3} b + 3 \, A a^{2} b^{2}\right )} x^{4} + \frac{1}{3} \,{\left (B a^{4} + 4 \, A a^{3} b\right )} x^{3} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.17057, size = 231, normalized size = 3.79 \begin{align*} \frac{1}{7} x^{7} b^{4} B + \frac{2}{3} x^{6} b^{3} a B + \frac{1}{6} x^{6} b^{4} A + \frac{6}{5} x^{5} b^{2} a^{2} B + \frac{4}{5} x^{5} b^{3} a A + x^{4} b a^{3} B + \frac{3}{2} x^{4} b^{2} a^{2} A + \frac{1}{3} x^{3} a^{4} B + \frac{4}{3} x^{3} b a^{3} A + \frac{1}{2} x^{2} a^{4} A \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] time = 0.085861, size = 107, normalized size = 1.75 \begin{align*} \frac{A a^{4} x^{2}}{2} + \frac{B b^{4} x^{7}}{7} + x^{6} \left (\frac{A b^{4}}{6} + \frac{2 B a b^{3}}{3}\right ) + x^{5} \left (\frac{4 A a b^{3}}{5} + \frac{6 B a^{2} b^{2}}{5}\right ) + x^{4} \left (\frac{3 A a^{2} b^{2}}{2} + B a^{3} b\right ) + x^{3} \left (\frac{4 A a^{3} b}{3} + \frac{B a^{4}}{3}\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.12485, size = 135, normalized size = 2.21 \begin{align*} \frac{1}{7} \, B b^{4} x^{7} + \frac{2}{3} \, B a b^{3} x^{6} + \frac{1}{6} \, A b^{4} x^{6} + \frac{6}{5} \, B a^{2} b^{2} x^{5} + \frac{4}{5} \, A a b^{3} x^{5} + B a^{3} b x^{4} + \frac{3}{2} \, A a^{2} b^{2} x^{4} + \frac{1}{3} \, B a^{4} x^{3} + \frac{4}{3} \, A a^{3} b x^{3} + \frac{1}{2} \, A a^{4} x^{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]